﻿using System;
using System.Web.Http;
using GC_MU.Core.Abstractions.Interfaces.Configuration;

namespace GC_MU.Site.Api
{
	public class BaseApiController : ApiController
	{
		#region Protected Properties

		public IApplicationConfiguration ApplicationConfiguration { get; private set; }

		#endregion

		#region Constructors

		public BaseApiController(IApplicationConfiguration appConfiguration)
		{
			if (appConfiguration == null)
				throw new ArgumentNullException(string.Format("appConfiguration"));
			ApplicationConfiguration = appConfiguration;
		}

		#endregion
	}
}